package com.love.marriage.defaultAmountConfig.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.common.interfaces.permission.DataPermission;
import com.love.marriage.defaultAmountConfig.entity.DefaultAmountConfig;
import com.love.marriage.defaultAmountConfig.vo.DefaultAmountConfigVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  默认金额配置表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-25 07:42:11
 * version:      1.0.0
 */
@Mapper
public interface DefaultAmountConfigMapper extends BaseMapper<DefaultAmountConfig> {

    @DataPermission(table = "default_amount_config_t")
    Page<DefaultAmountConfigVo> getPage(Page<DefaultAmountConfigVo> page, @Param("defaultAmountConfigVo") DefaultAmountConfigVo defaultAmountConfigVo);

    DefaultAmountConfigVo queryDefaultAmountConfig(@Param("id") Long id);

    DefaultAmountConfigVo queryDefaultAmountConfigByCode(@Param("code") String code);

    List<DefaultAmountConfigVo> queryDefaultAmountConfigByCodes(@Param("codes") List<String> codes);
}
